// 列表头按钮配置

import url from "@/axios/url";
const { mesUrl, adminUrl, wmsUrl } = url()
export const exportUrl = `${mesUrl}reportOperate/recheckDataExport`

export const rowCenConfig = [
  {
    name: "查看图片",
    type: "primary",
    class: "row-btn-primary",
    handleName: "showPhoto", //点击时返回的标识
  },
]

// 搜索条件配置
export const searchConfig = {
  data() {
    const self = this;
    return {
      searchDialog: {
        inline: true,
        formDesc: {
          modelName: {
            type: "input",
            label: '车型',
          },
          vinCode: {
            type: "input",
            label: '编码',
          },
          updateByName: {
            type: "input",
            label: '操作人',
          },
          planDeliveryDate: {
            type: "daterange",
            label: "完成时间",
            attrs: {
              valueFormat: "yyyy-MM-dd",
              searchArrKey: ["updateTimeMin", "updateTimeMax"],
            },
          },

        },
      },
    };
  },
};

export const operateList = [
  {
    name: $i18n.t("common.export"),
    type: "primary",
    icon: "el-icon-download",
    handleName: "export", //点击时返回的标识
    url: exportUrl,
    //auth: "auth:operlog:export", //权限字段
  },
]
// 新增/删除表单配置
